package service.impl;

import dao.Dorm_roomsDao;
import dao.impl.Dorm_roomsDaoimpl;
import entity.Dorm_rooms;
import service.Dorm_roomsService;

import java.sql.SQLException;
import java.util.List;

public class Dorm_roomsServiceimpl implements Dorm_roomsService {
    Dorm_roomsDao dor=new Dorm_roomsDaoimpl();
    @Override
    public List<Dorm_rooms> rooms(int id,String roomnumber,int floor) throws SQLException, ClassNotFoundException {
        return dor.rooms(id,roomnumber,floor);
    }

    @Override
    public int fjrs(String roomnumber, int foor, int buildingid) throws SQLException, ClassNotFoundException {
        return dor.fjrs(roomnumber, foor, buildingid);
    }
}
